import Vtable from './Vtable.vue'

/**
 * 驼峰转中横线
 * @param {*} str 
 * @returns 
 */
function getKebabCase(str) {
  let temp = str.replace(/[A-Z]/g, i=>'-' + i.toLowerCase())
  if(temp[0]==='-') temp = temp.slice(1); 
  return temp;
}

export default {
  install(Vue) {
    Vue.component(Vtable.name, Vtable)
  }
}